@import "../config/config";

@for $size from 0 through $font-size-em-through {
  .fs-em-#{$size} {
    font-size: #{$size}em;
  }
  @if $size <= $font-size-em-decimal-through {
    @for $i from 0 to 10 {
      .fs-em-#{$size}_#{$i} {
        font-size: #{$size}#{'.'}#{$i}em;
      }
    }
  } @else {
    .fs-em-#{$size}_5 {
      font-size: #{$size}#{'.5'}em;
    }
  }
}

@for $size from 0 through $font-size-rem-through {
  .fs-rem-#{$size} {
    font-size: #{$size}rem;
  }
  @if $size <= $font-size-rem-decimal-through {
    @for $i from 0 to 10 {
      .fs-rem-#{$size}_#{$i} {
        font-size: #{$size}#{'.'}#{$i}rem;
      }
    }
  } @else {
    .fs-rem-#{$size}_5 {
      font-size: #{$size}#{'.5'}rem;
    }
  }
}

@for $size from 12 through $font-size-px-through {
  .fs-#{$size} {
    font-size: #{$size}px;
  }
}
